FROM centos:7
MAINTAINER Ryan Ouyang
RUN yum -y update yum \
    && yum -y install curl tar make gcc gcc-c++ \
    && curl --silent --location https://rpm.nodesource.com/setup_4.x | bash - \
    && yum -y install nodejs \
    && mkdir -p /opt/app
WORKDIR /opt/app
COPY . /opt/app
RUN npm install
EXPOSE 3000
CMD ["npm", "start"]